/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bizfty.api.apimanager.models;

import com.bizfty.api.commons.models.BasicEntity;
import java.util.List;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author johns
 */
public class Method extends BasicEntity {
    /**
     * 归属模块版本
     */
    @ManyToOne
    @JoinColumn(name="VERSION_ID")
    private Version version;
    /**
     * 方法名
     */
    private String code;
    /**
     * 是否不再建议使用
     * true  表示不建议使用
     * false 表示正常
     */
    private Boolean deprecated;
    /**
     * 描述
     */
    private String description;
    /**
     * 输入
     */
    @ManyToOne
    @JoinColumn(name="REQUEST_ID")
    private DataType input;
    /**
     * 输出
     */
    @ManyToOne
    @JoinColumn(name="RESPONSE_ID")
    private DataType output;
    /**
     * 异常
     */
    @OneToMany
    private List<DataType> fault;

}